<%@page pageEncoding="UTF-8" isELIgnored="false" session="false"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@taglib prefix="f" uri="http://www.slim3.org/functions"%>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>C2dmStart</title>
</head>

<%
	String regist_gmail = "";
	String regist_gmailPwd = "";
	String regist_pkg = "";
	String regist_id = "";
	String result_msg = "";
	String token = "";
	if (request.getAttribute("id") != null) {
		regist_gmail = (String) request.getAttribute("mail");
		regist_gmailPwd = (String) request.getAttribute("mailPwd");
		regist_pkg = (String) request.getAttribute("package");
		regist_id = (String) request.getAttribute("id");
		result_msg = (String) request.getAttribute("message");
		token = (String) request.getAttribute("token");
	}

%>
<body>
<form method="post" action="/c2dmStart" >
<p>↓↓Gmailアドレスをいれてね↓↓</p>
Registered Gmail：<input name="mail" type="text" value="<%= regist_gmail  %>"/>
<p>↓↓Gmailパスワードをいれてね↓↓</p>
Registered GmailPwd：<input name="mailPwd" type="password" value="<%= regist_gmailPwd  %>"/>
<p>↓↓登録したパッケージ名をいれてね↓↓</p>
Registered Package：<input name="package" type="text" value="<%= regist_pkg  %>"/>
<p>↓↓Android端末で受信したRegistrationIDをいれてね↓↓</p>
Registration Id：<input name="id" type="text" value="<%= regist_id  %>"/>
<br/>
<p>↓↓ここにメッセージを入れてね↓↓</p>
<textArea name="inputText" rows="4" cols="40"></textArea>
<br/>
<p style="color:red;">※メッセージサイズは最大1024バイトなので文字数に注意</p>
<input style="height: 40px;" type="submit" value="！！！発射！！！" />
<br>
<p><%= result_msg %></p>
<p><%= token %></p>
</form>
</body>
</html>
